﻿<Window x:Class="CECB.V_MemberUpdate_Window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="V_MemberUpdate_Window"  
        WindowStartupLocation="CenterScreen"  
        Background="#AA000000" 
        AllowsTransparency="True"
        WindowStyle="None" WindowState="Maximized"
        xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
       
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
    <Grid VerticalAlignment="Center" HorizontalAlignment="Center" Margin="100,50,0,0" Width="800" Height="650">
        <Canvas   Width="auto" Height="auto">
            <Rectangle Margin="5,0, 8,36" Stroke="White" RadiusY="19.5" RadiusX="19.5" StrokeThickness="4" Grid.RowSpan="2" Height="506" Width="649">
                <Rectangle.Effect>
                    <DropShadowEffect Direction="330" BlurRadius="24" ShadowDepth="13" />
                </Rectangle.Effect>
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="Black" Offset="0" />
                        <GradientStop Color="#FFA3A1A1" Offset="0.494" />
                        <GradientStop Color="#FF272121" Offset="0" />
                        <GradientStop Color="#FF272121" Offset="1" />
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <Label Content="Modify Member Details" Height="auto" HorizontalAlignment="Center" Margin="50,30,10,0"  VerticalAlignment="Center" Width="auto" FontSize="20" FontStretch="Normal" FontStyle="Normal" FontWeight="Black" Foreground="#FFEFEFEF" Canvas.Left="1" Canvas.Top="18"></Label>
            <StackPanel Margin="120,130,0,0" Width="450" Height="348" Canvas.Left="-11" Canvas.Top="-19">
                <WrapPanel VerticalAlignment="Top" Height="52" Orientation="Horizontal">
                    <Label Content=" " Height="1" HorizontalAlignment="Center" Margin="0,10,10,0"  VerticalAlignment="Center" Width="auto" FontSize="20" FontStretch="Normal" FontStyle="Normal" FontWeight="Black" Foreground="#FFEFEFEF"></Label>
                    <Label Content="Search" Height="28" Width="100" Name="label29" HorizontalAlignment="Left" Margin="0,15,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                    <toolkit:AutoCompleteBox Background="White" BorderBrush="#FFF8F8F8" BorderThickness="2" FilterMode="Contains" FontSize="18" Height="30" IsTabStop="True" ItemsSource="{Binding}" Name="autoCompleteBox_SearchMember" Opacity="1" TabIndex="1" Margin="70,10,0,0" UseLayoutRounding="False" ValueMemberPath="mem_name" Width="248.483" SelectionChanged="autoCompleteBox_SearchMember_SelectionChanged">
                        <toolkit:AutoCompleteBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="{Binding Path=mem_reference}" />
                                    <TextBlock Text=" - " />
                                    <TextBlock Text="{Binding Path=mem_name}" />
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:AutoCompleteBox.ItemTemplate>
                    </toolkit:AutoCompleteBox>
                </WrapPanel >


                <WrapPanel VerticalAlignment="Top" Orientation="Horizontal">
                    <Label Content="Full Name" Height="28" Width="100" Name="label23" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                    <TextBox Height="30" HorizontalAlignment="Left" Margin="70,0,0,0" Name="textBox_ModifyFirstName" VerticalAlignment="Top" Width="250" FontSize="14" Foreground="#FF4E0000" />
                </WrapPanel>
                <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0">
                    <Label Content="Address" Height="28" Width="100" Name="label24" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                    <TextBox Height="auto" HorizontalAlignment="Left" Margin="70,0,0,0" Name="textBox_ModifyAddress" VerticalAlignment="Top" Width="250" MinHeight="30" MaxHeight="60" TextWrapping="Wrap" AcceptsReturn="True" FontSize="14" Foreground="#FF4E0000" />

                </WrapPanel>
                <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0">
                    <Label Content="Designation" Height="28" Width="100" Name="label25" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                    <ComboBox Height="30" HorizontalAlignment="Left" Margin="70,0,0,0" Name="comboBox_ModifyDesignation" VerticalAlignment="Top" Width="250" FontSize="14" Foreground="#FF4E0000"   SelectionChanged="textBox_Designation_SelectionChanged">
                        <ComboBoxItem Content="Team Leader" />
                        <ComboBoxItem Content="Consultent" />
                    </ComboBox>

                </WrapPanel>
                <WrapPanel VerticalAlignment="Top" Name="ModifywrapPanelUserLogin" Margin="0,5,0,0">
                    <WrapPanel VerticalAlignment="Top" Orientation="Horizontal">
                        <Label Content="User Name" Width="100" Height="28" Name="labeluModifysername" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                        <TextBox Height="30"   Margin="70,0,0,0" Name="textBox_Modifyusername"   Width="250" FontSize="14" Foreground="#FF4E0000" TextChanged="textBox_Modifyusername_TextChanged" SelectionChanged="textBox_Modifyusername_SelectionChanged" TextInput="textBox_Modifyusername_TextInput" IsHitTestVisibleChanged="textBox_Modifyusername_IsHitTestVisibleChanged" IsReadOnly="True" />
                    </WrapPanel>
                    <WrapPanel VerticalAlignment="Top"></WrapPanel>
                </WrapPanel>
                <WrapPanel VerticalAlignment="Top">
                    <Label Content="Specilization" Width="100" Height="28" Name="labelModifye" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                    <ComboBox Height="30" HorizontalAlignment="Left" Margin="70,5,0,0" Name="comboBox_ModifySpecilised" VerticalAlignment="Top" Width="250" FontSize="14" Foreground="#FF4E0000" DisplayMemberPath="cmpt_name" SelectedValuePath="cmpt_reference"  />
                </WrapPanel>



                <StackPanel Name="stackPanelModify14" Orientation="Horizontal" Margin="150,60,0,0" Width="263">


                    <Button Background="{x:Null}" BorderBrush="White" Click="updateButton_Click" Height="44"   Name="ModifySaveButton" Margin="160,0,0,0" Width="98">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <Image Grid.Column="0" Height="32" Margin="2" Source="images\save.png" Width="32" />
                            <StackPanel Grid.Column="1" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Center">
                                <TextBlock Margin="0" Padding="0" Text="Update" Foreground="White" TextWrapping="NoWrap" />
                            </StackPanel>
                        </Grid>
                    </Button>
                </StackPanel>
            </StackPanel>
            <Grid HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,70,80,0" Canvas.Left="603" Canvas.Top="-61">
                <Image Height="32" Margin="2" Source="/CECB;component/images/closeblack.png"  Width="32" MouseLeftButtonDown="Image_MouseLeftButtonDown" />
            </Grid>
        </Canvas>

    </Grid>
</Window>
